<?php
session_start();
$valid=0;
$post=0;

if(isset($_SESSION['username']))
$username=$_SESSION['username'];
else
$username="";

if(isset($_REQUEST['action']))
$action=$_REQUEST['action'];
else
$action="list";
if(($action=="checkout")&&($username!="")){

header('location:shipping.php');

}
if(($action=="checkout")&&($username=="")){
?>

<!DOCTYPE html>
<html  lang="en"><head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Q8MegaStore :: New User</title>    
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="BootCommerce is an E-commerce solution based on twitter bootstrap,perfect for any kind of shops.A complete Control Panel to manage Products, Categories, Orders,Clients and many system options">
    <meta name="keywords" content="e-commerce,ecommerce,bootstrap,twitter shop,shop,online sell,envato,codecanyon,template shop">
    <meta name="robots" content="INDEX,FOLLOW">
    <meta name="viewport" content="user-scalable=no,initial-scale=1.0, maximum-scale=1.0 width=device-width">
    <!-- Styles -->
    	 
	<link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap.css" rel="stylesheet">
	<link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap_extensions.css" rel="stylesheet">
	<link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/addons.css" rel="stylesheet">   
	<link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap-responsive.css" rel="stylesheet">
	<link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap_responsive_extensions.css" rel="stylesheet">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="/include/js/html5shiv.js"></script>
    <![endif]--> 
    <link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/general-style.css" rel="stylesheet">       
    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="/include/img/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/include/img/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/include/img/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/include/img/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="/include/img/ico/apple-touch-icon-57-precomposed.png">
    <!--[if lt IE 9]>
        <script src="/include/js/html5shiv.js"></script>
    <![endif]--> 
    <link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/slideshow.css" rel="stylesheet">  
	
		<style type="text/css" >
			body{overflow-y:scroll;}
			#top-bar{display:none;}
			#search-form{display:none;}
			.input-prepend no-add row-fluid{width:40%;}
		</style>
	
	
  </head>  
  <body style="overflow-x: hidden;" onload="alert('please login to checkout');">
   <div class="scroll_body_container"><!-- CONTAINER FOR NICESCROLL PLUGIN (FIX CHROME SCROLLING PROBLEM) this will be closed into footer.php file -->
<section class="container-fluid" id="top-bar"> <!-- CONTAINER -->

 <div class="container-semifluid">
    <div class="row-fluid">
         <div class="span7">
           <div id="top-login-form-container">
              <form novalidate="novalidate" method="post" action="" accept-charset="UTF-8" id="top-login-form">
                     <div class="control-group pull-left">
                       <div class="controls">
                         <div class="input-prepend">
                          <span class="add-on"><i class="icon-user"></i></span>
                          <input autocomplete="off" name="useridLog" id="top-useridLog" class="required" placeholder="UserID" type="text">
                         </div>
                       </div>
                     </div>
                     <div class="control-group pull-left">
                       <div class="controls">
                         <div class="input-prepend">
                          <span class="add-on"><i class="icon icon-black icon-key"></i></span>
                          <input name="passwordLog" id="top-passwordLog" class="required" placeholder="Password" value="" type="password">
                        </div>
                      </div>
                    </div>
                    <span class="btn btn-login btn-info unbordered solid squared" id="top-btn-login"><i class="icon icon-white icon-unlocked"></i> Login</span>
                    <div class="clearfix"></div>
              </form>
              <a href="#" class="retrieve-data">Forgotten Data?</a> | <a href="">Sign up</a>
           </div>
                         <div class="welcome-message">Welcome on Q8 Movies <a href="" id="btn-login-link">Login</a> | <a href="">Sign up</a></div>
                  </div>
       <div class="span1 text-right">
      	 <select style="width: 0px; height: 0px; outline: medium none; padding: 0px; margin: 0px; opacity: 0;" id="default_client_language" class="change_language_on_the_fly bootstyl text-left solid unbordered" name="default_client_language" data-verse="right">
  <option data-img-before="&lt;img src=&quot;/lang/en_US/en_US.png&quot; style=&quot;margin-right:10px;&quot; /&gt;" value="en_US" selected="selected"></option><option data-img-before="&lt;img src=&quot;/lang/it_IT/it_IT.png&quot; style=&quot;margin-right:10px;&quot; /&gt;" value="it_IT"></option></select>
       </div>
       <div class="span4">
		   <div class="row-fluid">
    <div class="span12 text-right">
           <ul class="nav topcart">
                <li class="dropdown"> <span class="dropdown-toggle" data-toggle="dropdown"> <i class="icon32 icon-basket icon-black"></i> <span class="label label-info">0 Products</span> - $ 0.00 <b class="caret"></b></span>                  
                    <ul class="dropdown-menu squared">
                        <li>
                            <table>
                                <tbody class="product-tbody-container">
                                                                  </tbody>
                            </table>
                                                        <table>
                                <tbody class="counts-container">
                                    <tr>
                                        <td class="text-right"><strong>Subtotal:</strong></td>
                                        <td class="text-right subtotal">$ 0.00</td>
                                    </tr>
                                    <tr>
                                        <td class="text-right"><strong>Vat:</strong></td>
                                        <td class="text-right tax">$ 0.00</td>
                                    </tr>
									                                    
                                    <tr>
                                        <td class="text-right"><strong>Total:</strong></td>
                                        <td class="text-right total">$ 0.00</td>
                                    </tr>
                                </tbody>
                            </table>
                                                       <div class="text-center cart-options-container"> <a class="btn btn-info squared solid unbordered" href="">Cart</a> <a class="btn btn-primary squared solid unbordered" href="">Checkout</a> </div>
                        </li>
                    </ul>
                </li>
            </ul>    
    </div>
  </div>       </div>
    </div>
  </div>
</section>
<header>
 <section class="container-semifluid" id="header-container"> 
  <div class="row-fluid"> 
    <div class="span4 logo-container">
      <a href=""><img src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bc_logo.png" alt=""></a>
    </div>
    <div class="span3 text-right">
              <form id="search-form" class="form-search form-horizontal" action="/search.php" method="get">
            <div class="input-append span12">
                <input autocomplete="off" name="sp" class="search-query" placeholder="Search..." type="text">
                <button type="submit"><i class="icon-search"></i></button>
            </div>
        </form>
          </div>
    <div class="span5 main-menu-container text-right">
      <a href=""><i class="icon-user"></i> Your Account</a>
      <a href=""><i class="icon-shopping-cart"></i> Shopping Cart</a>
      <a href=""><i class="icon-ok-circle"></i> Checkout</a>
      <a href=""><i class="icon icon-black icon-contacts"></i> Contact Us</a>
    </div>
  </div>
 </section>
</header>
<div class="clearfix"></div>    
   <section class="container-semifluid" id="main-container"> 
           <div class="row-fluid" style="position:relative;">
        <div class="span12 carousel_wrapper horizontal-category" style="display:none" >                                 
          <span style="display: block;" class="carousel-prev disabled" id="carousel-category-prev"></span>
          <div style="display: block; text-align: start; float: none; position: relative; top: auto; right: auto; bottom: auto; left: auto; z-index: auto; width: 1170px; height: 40px; margin: 0px 0px 20px; overflow: hidden;" class="caroufredsel_wrapper"><ul style="text-align: left; float: none; position: absolute; top: 0px; right: auto; bottom: auto; left: 0px; margin: 0px; width: 4432px; height: 40px;">       
             
              <li>
                <a href="" >Option 1</a>
              </li>
             
              <li>
                <a href="">Option 2</a>
              </li>
             
              <li>
                <a href="" >Option 3</a>
              </li>
             
              <li>
                <a href="" >Option 4</a>
              </li>
             
              <li>
                <a href="" >Option 5</a>
              </li>
             
             <li>
                <a href="" >Option 6</a>
              </li>
             
			 <li>
                <a href="" >Option 7</a>
              </li>
             
              <li>
                <a href="" >Option 8</a>
              </li>
             
             <li>
                <a href="" >Option 9</a>
              </li>
             
               <li>
                <a href="" >Option 10</a>
              </li>
             
             <li>
                <a href="" >Option 11</a>
              </li>
             
			 <li>
                <a href="" >Option 12</a>
              </li>
             
              <li>
                <a href="" >Option 13</a>
              </li>
             
             <li>
                <a href="" >Option 14</a>
              </li>
             
             <li>
                <a href="">Option 15</a>
              </li>
             
           </ul></div>            
          <span style="display: block;" class="carousel-next" id="carousel-category-next"></span>                                   
        </div> 
        <span style="left: 192px; width: 0px;" class="categories_menu_indicator"></span>       
       </div>
        <div class="box-header">
          <span class="header-text"><i class="icon icon-black icon-locked"></i> Login</span>      
      </div>      
             <section class="row-fluid registration-page"><!-- BODY ROW -->      
         <section class="span6 login-container">
          <h3>REGISTERED CUSTOMERS</h3>           <h4>Please either log</h4> 
           <div id="result-login" class="hide"></div>       
           <form method="post" action="" accept-charset="UTF-8" id="login-form" novalidate="novalidate">    		  
                     <div class="control-group">
                       <div class="controls">
                         <div class="input-prepend">
                          <span class="add-on"><i class="icon-user"></i></span>
                          <input type="text" name="useridLog" id="useridLog" class="required" placeholder="UserID" value="" autocomplete="off">   
                         </div> 
                       </div>                       
                     </div>
                     <div class="control-group">
                       <div class="controls">   
                         <div class="input-prepend">                          
                          <span class="add-on"><i class="icon icon-black icon-key"></i></span>
                          <input type="password" name="passwordLog" id="passwordLog" class="required" placeholder="Password" value="">
                        </div>
                      </div>                                           
                    </div>
                    <span class="btn btn-login btn-info unbordered solid squared" id="btn-login"><i class="icon icon-white icon-unlocked"></i> Login</span>&nbsp;&nbsp; <a href="#" class="retrieve-data">Forgotten Data?</a>
                    <div class="clearfix"></div>              
           </form>
       </section>
          <section class="span6 registration-container"> 
           <h3>Q8movies.com :: NEW USER</h3>
          
            <strong class="text-info"><small>Fields marked with (*) are required</small></strong>
			<br/>
           <div id="result-registration" class="alert alert-success"></div>
		   <br/>
          <div style="padding:15px;border:1px solid #fff;border-radius:6px;background:#e5e5e5" class="default-status-registration-form">
           <div class="container_form" style=" width: 496px; position: relative;">
		   <form method="post" action="abc.php" accept-charset="UTF-8" id="registration-form" novalidate="novalidate" style="width: 496px; border: none; padding: 0px; margin: 0px;">
             <div class="container_steps" style="position: relative; width: 1488px; border: none; padding: 0px; margin: 0px;">
			 <div id="fstep_1" style="width: 496px; overflow: auto; border: none; padding: 0px; margin: 0px; float: left;">            
                 
				 <div class="row-fluid">  
                    <div class="control-group span12 warning">
					<label calss="control-label" for="name"><strong>First Name*</strong></label>
						<div class="controls">
							<div class="input-prepend no-add row-fluid">
								<input type="text" class="required span12" name="name" id="name" value="" data-array="12,12,Name*" placeholder="Name*" autocomplete="off" style="width: 100%;">
							</div>
							<label for='name' generated='true' class='error help-inline'></label>
						</div>
					</div>
                  </div>
                  <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="lastname"><strong>Last Name*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required span12" name="lastname" id="lastname" value="" data-array="12,12,Last Name*" placeholder="Last Name*" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div>
                  <div class="row-fluid hidden">
                    <div class="control-group span12 warning"><label calss="control-label" for="tax_code"><strong>Tax Code*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required span12" name="tax_code" id="tax_code" value="" data-array="12,12,Tax Code*" placeholder="Tax Code*" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div>
                  <div class="row-fluid">  
                    <div class="control-group span12 warning"><label calss="control-label" for="email"><strong>E-mail*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required email span12" name="email" id="email" value="" data-array="12,12,E-mail*" placeholder="E-mail*" autocomplete="off" style="width: 100%;"></div></div></div>
                  </div>
                  <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="phone"><strong>Phone*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required span12" name="phone" id="phone" value="" data-array="12,12,Phone*" placeholder="Phone*" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div>
				   <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="password"><strong>Password*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="password" class="required span12" name="password" id="password" value="" data-array="12,12,Password*" placeholder="Password*" style="width: 100%;"></div></div></div> 
                  </div>
                  <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="password2"><strong>Repeat Password*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="password" class="required span12" name="password2" id="password2" equalto="#password" value="" data-array="12,12,Repeat Password*" placeholder="Repeat Password*" style="width: 100%;"></div></div></div> 
                  </div> 
                  <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="fax"><strong>Password Hint</strong></label><div class="controls">
					<div class="input-prepend no-add row-fluid"><input type="text" name="pass-hint" id="pass-hint" value="" data-array="12,12,pass-hint" class="span12" placeholder="Fax" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div>
				<div class="row-fluid">
					<div class="control-group span12 warning">
						<label calss="control-label" for="how"><strong>How did you heard about us?</strong></label>
						<div class="input-prepend no-add row-fluid">
							<textarea name="know-us" id="know-us" cols="40" rows="2"></textarea>
						</div>
					</div>
				</div>
				<div class="row-fluid">
					<div class="control-group span12 warning">
						<label calss="control-label" for="how"><strong>Newsletter ?</strong></label>
						<div class="input-prepend no-add row-fluid">
							<input type="checkbox" name="news">
						</div>
					</div>
				</div>
                  <div class="row-fluid">  
                    <div class="control-group span12 warning"><label calss="control-label" for="address"><strong>Address*</strong></label>
					<div class="controls"><div class="input-prepend no-add row-fluid">
					<input type="text" class="required span12" name="address" id="address" value="" data-array="12,12,Address*" placeholder="Address*" autocomplete="off" style="width: 100%;"></div></div></div>
                  </div>
				    
				   <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="city"><strong>City*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required span12" name="city" id="city" value="" data-array="12,12,City*" placeholder="City*" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div> 
                  <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="zipcode"><strong>Zip Code*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required span12" name="zipcode" id="zipcode" value="" data-array="12,12,Zip Code*" placeholder="Zip Code*" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div>
                 
             </div>
			 </div>
              
              <div id="form-btn" class="text-right"><span type="submit" class="fsubmit btn btn-info squared unbordered solid"><i class="icon-white icon-plus"></i> Sign up</span></div>  
                                       
           </form>
		   </div>          
           
          </div>
           <div class="clearfix"></div>
        </section>
   </section>
   </section> <!-- /CONTAINER -->
	<footer>
  <div class="container-fluid" id="footer">
   <div class="container-semifluid">   
      <div class="row-fluid">
        <div class="span6">        
          <img src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bc_logo_footer.png" alt="" width="30%">
          <p style="text-align:justify">
          "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
 do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim 
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut 
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit 
in voluptate velit esse cillum dolore eu fugiat nulla pariatur. 
Excepteur sint occaecat cupidatat non proident, sunt in
          </p>
         <div class="clearfix"></div>
        </div>
        <div class="span3">
          <div class="box-header">
            <span class="header-text" style="white-space:nowrap;">Your Account</span>   
          </div>         
         <ul class="menu-vertical-indicator">
           <li><a href="">General Info</a></li>
           <li><a href="">Addresses</a></li>
           <li><a href="">Orders</a></li>
           <li><a href="">Contact Us</a></li>
         </ul>
         <div class="clearfix"></div>
        </div>
        <div class="span3">
          <div class="box-header">
            <span class="header-text" style="white-space:nowrap;">Contact Us</span>   
          </div>         
         <ul>
           <li><img src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/footer-phone.png">1234564545</li>
           <li><img src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/footer-email.png"> contact@q8movies.com</li>
           <li><img src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/footer-marker.png"> abc, xyz</li>
         </ul>
         <div class="clearfix"></div>
        </div>       
                     
      </div>
      
   </div>
  </div>    
</footer>
<!-- retrieve user's data form -->						 
<div id="retrieve-data-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="retrieve-data-modallabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><li class="icon-remove"></li></button>
    <span id="retrieve-data-modallabel"><strong class="label label-info">Retrieve Your access data</strong></span>
  </div>  
  <div class="modal-body">
     <div id="retrieve-result" class="hide"></div>
     <form novalidate="novalidate" method="post" action="/retrieve-data.php" accept-charset="UTF-8" id="retrieve-data-form">    		  
         <div class="control-group">
           <div class="controls">
            <label for="userid-retrieve">UserID</label>
             <div class="input-prepend">
              <span class="add-on"><i class="icon-user"></i></span>              
              <input autocomplete="off" name="userid_retrieve" id="userid-retrieve" class="leastoneinput" placeholder="UserID" type="text">   
             </div> 
           </div>                       
         </div>
         <div class="control-group">
           <div class="controls">  
             <label for="email-retrieve">E-mail</label> 
             <div class="input-prepend">                          
              <span class="add-on"><i class="icon-envelope"></i></span>              
              <input autocomplete="off" name="email_retrieve" id="email-retrieve" class="leastoneinput email" placeholder="E-mail" type="text">
            </div>
          </div>                                           
        </div>   
        <span class="btn btn-info unbordered solid squared pull-right" id="btn-retrieve-data"><i class="icon-white icon-wrench"></i> Retrieve data</span>
        <div class="clearfix"></div>              
       </form>  
  </div>
</div> 
<!-- / retrieve user's data form -->							
<a style="display: none;" id="go-to-top"></a>
</div>

<!-- CLOSE CONTAINER FOR NICESCROLL PLUGIN (FIX CHROME SCROLLING PROBLEM), div opened into body-header.php file -->
    <!-- ========================== Javascript ======================== -->  
	 <script src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_003.js"></script>
<script src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap.js"></script>
<script src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap_extensions.js"></script>    
<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jsin.js"></script>
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/en_US.js"></script>    
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/validate.js"></script> 
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/ajaxForm.js"></script> 
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/livequery.js"></script> 
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/center-div.js"></script>  
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/loader.js"></script>  
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_010.js"></script> 
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_002.js"></script>
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery.js"></script>
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/restyle-checkbox.js"></script>
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/restyle-radio.js"></script>  
  <!-- carousel plugin --> 
	<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_007.js"></script>  
	<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_004.js"></script>
	<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_009.js"></script>
	<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_011.js"></script>
	<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_005.js"></script>          
  <!-- /carousel plugin --> 
	<script type="text/javascript">
    $(function(){
	  /*$("html").niceScroll({cursorcolor:'#3A87AD',cursorborder:'1px solid #fff'});*/
	  $('body').data('theme_path','/content/themes/default');
	  $('body').data('theme_img_path','/content/themes/default/img');
	  $('body').data('abs_client_path','');
	  $('body').data('thousands_separator',',');
	  $('body').data('decimals_separator','.');	  
	  	  	
	      $("html").niceScroll({cursorcolor:'#3A87AD',cursorborder:'0px solid #fff',cursorwidth:8});
		  $('.responsiveHead').on('click', function(e) {
			  e.preventDefault();			  
			  if(!$(this).next('.responsiveMenu').is(':visible')){
				  $(this).next('.responsiveMenu').slideDown('fast');
			  }else{				  
				  $(this).next('.responsiveMenu').slideUp('fast');
			  }
		  });	
	      
    });
    </script>    
    <!--[if lt IE 9]>
        <script type="text/javascript" src="/content/themes/default/js/ie_hacks.js"></script>        
    <![endif]-->
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/main_script.js"></script>   
         
   <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_006.js"></script> 
   <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_008.js"></script> 

 <script>
	$(document).ready(function(){
		
		$(".fsubmit").click(function(){
			var name = $("#name").val();
			var lname = $("#lastname").val();
			var email = $("#email").val();
			var phone = $("#phone").val();
			var password = $("#password").val();
			if(name == ""){
				$(".error").html("Required Field");
				return false;
			}
			var dataString = 'name='+ name + '&lname=' + lname + '&email=' + email + '&phone=' + phone + '&pass=' + password;
			$.ajax({
			  type: "POST",
			  url: "ajax_registration_process.php",
			  data: dataString,
			 
			  success: function(data) {
				if(data == "exists"){
					$("#result-registration").html("this email already exists.");
					alert("this email already exists.");
					return false;
				}
				if(data == "success"){
					$("#result-registration").html("Congrats ! thank you for registering.");
					alert("Congrats ! thank you for registering.");
				}
			  }
			 });
		});
		
		$(".btn-login").click(function(){
			var userid = $("#useridLog").val();
			var password = $("#passwordLog").val();	
			var dataString = 'userid='+ userid + '&password=' + password;
			$.ajax({
			  type: "POST",
			  url: "chec.php",
			  data: dataString,
			  success: function(data) {
			 
				if(data == "failure"){
					alert("user name or password not valid.");
					return false;
				}
				if(data == "success"){
					alert("successfuly logged in.");
					location.reload();
				}
				if(data == "already logged in"){
					location.reload();
				}
			  }
			 });
		});
	});
  </script>
<div style="width: 8px; z-index: auto; cursor: default; position: fixed; top: 0px; height: 100%; right: 0px; opacity: 0;" class="nicescroll-rails" id="ascrail2000"><div style="position: relative; top: 0px; float: right; width: 8px; height: 207px; background-color: rgb(58, 135, 173); border: 0px solid rgb(255, 255, 255); background-clip: padding-box; border-radius: 0px;"></div></div><div style="height: 8px; z-index: auto; position: fixed; left: 0px; width: 100%; bottom: 0px; cursor: default; opacity: 0; display: none;" class="nicescroll-rails" id="ascrail2000-hr"><div style="position: relative; top: 0px; height: 8px; width: 1366px; background-color: rgb(58, 135, 173); border: 0px solid rgb(255, 255, 255); background-clip: padding-box; border-radius: 0px; left: 0px;"></div></div></body>

<?php
}
if($action=="list")
{
?>


<!DOCTYPE html>
<html style="overflow: hidden;" lang="en"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Q8MegaStore :: New User</title>    
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="BootCommerce is an E-commerce solution based on twitter bootstrap,perfect for any kind of shops.A complete Control Panel to manage Products, Categories, Orders,Clients and many system options">
    <meta name="keywords" content="e-commerce,ecommerce,bootstrap,twitter shop,shop,online sell,envato,codecanyon,template shop">
    <meta name="robots" content="INDEX,FOLLOW">
    <meta name="viewport" content="user-scalable=no,initial-scale=1.0, maximum-scale=1.0 width=device-width">
    <!-- Styles -->
    	 
	<link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap.css" rel="stylesheet">
	<link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap_extensions.css" rel="stylesheet">
	<link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/addons.css" rel="stylesheet">   
	<link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap-responsive.css" rel="stylesheet">
	<link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap_responsive_extensions.css" rel="stylesheet">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="/include/js/html5shiv.js"></script>
    <![endif]--> 
    <link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/general-style.css" rel="stylesheet">       
    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="/include/img/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/include/img/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/include/img/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/include/img/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="/include/img/ico/apple-touch-icon-57-precomposed.png">
    <!--[if lt IE 9]>
        <script src="/include/js/html5shiv.js"></script>
    <![endif]--> 
    <link href="http://grabwebs.com/commerce/BootCommerce%20Demo_files/slideshow.css" rel="stylesheet">  
	<style type="text/css" >
			body{overflow-y:scroll;}
			#top-bar{display:none;}
			#search-form{display:none;}
			.input-prepend no-add row-fluid{width:40%;}
		</style>
  </head>  
  <body>
   <div class="scroll_body_container"><!-- CONTAINER FOR NICESCROLL PLUGIN (FIX CHROME SCROLLING PROBLEM) this will be closed into footer.php file -->
<section class="container-fluid" id="top-bar"> <!-- CONTAINER -->

 <div class="container-semifluid">
    <div class="row-fluid">
         <div class="span7">
           <div id="top-login-form-container">
              <form novalidate="novalidate" method="post" action="" accept-charset="UTF-8" id="top-login-form">
                     <div class="control-group pull-left">
                       <div class="controls">
                         <div class="input-prepend">
                          <span class="add-on"><i class="icon-user"></i></span>
                          <input autocomplete="off" name="useridLog" id="top-useridLog" class="required" placeholder="UserID" type="text">
                         </div>
                       </div>
                     </div>
                     <div class="control-group pull-left">
                       <div class="controls">
                         <div class="input-prepend">
                          <span class="add-on"><i class="icon icon-black icon-key"></i></span>
                          <input name="passwordLog" id="top-passwordLog" class="required" placeholder="Password" value="" type="password">
                        </div>
                      </div>
                    </div>
                    <span class="btn btn-login btn-info unbordered solid squared" id="top-btn-login"><i class="icon icon-white icon-unlocked"></i> Login</span>
                    <div class="clearfix"></div>
              </form>
              <a href="#" class="retrieve-data">Forgotten Data?</a> | <a href="">Sign up</a>
           </div>
                         <div class="welcome-message">Welcome on Q8 Movies <a href="" id="btn-login-link">Login</a> | <a href="">Sign up</a></div>
                  </div>
       <div class="span1 text-right">
      	 <select style="width: 0px; height: 0px; outline: medium none; padding: 0px; margin: 0px; opacity: 0;" id="default_client_language" class="change_language_on_the_fly bootstyl text-left solid unbordered" name="default_client_language" data-verse="right">
  <option data-img-before="&lt;img src=&quot;/lang/en_US/en_US.png&quot; style=&quot;margin-right:10px;&quot; /&gt;" value="en_US" selected="selected"></option><option data-img-before="&lt;img src=&quot;/lang/it_IT/it_IT.png&quot; style=&quot;margin-right:10px;&quot; /&gt;" value="it_IT"></option></select>
       </div>
       <div class="span4">
		   <div class="row-fluid">
    <div class="span12 text-right">
           <ul class="nav topcart">
                <li class="dropdown"> <span class="dropdown-toggle" data-toggle="dropdown"> <i class="icon32 icon-basket icon-black"></i> <span class="label label-info">0 Products</span> - $ 0.00 <b class="caret"></b></span>                  
                    <ul class="dropdown-menu squared">
                        <li>
                            <table>
                                <tbody class="product-tbody-container">
                                                                  </tbody>
                            </table>
                                                        <table>
                                <tbody class="counts-container">
                                    <tr>
                                        <td class="text-right"><strong>Subtotal:</strong></td>
                                        <td class="text-right subtotal">$ 0.00</td>
                                    </tr>
                                    <tr>
                                        <td class="text-right"><strong>Vat:</strong></td>
                                        <td class="text-right tax">$ 0.00</td>
                                    </tr>
									                                    
                                    <tr>
                                        <td class="text-right"><strong>Total:</strong></td>
                                        <td class="text-right total">$ 0.00</td>
                                    </tr>
                                </tbody>
                            </table>
                                                       <div class="text-center cart-options-container"> <a class="btn btn-info squared solid unbordered" href="">Cart</a> <a class="btn btn-primary squared solid unbordered" href="">Checkout</a> </div>
                        </li>
                    </ul>
                </li>
            </ul>    
    </div>
  </div>       </div>
    </div>
  </div>
</section>
<header>
 <section class="container-semifluid" id="header-container"> 
  <div class="row-fluid"> 
    <div class="span4 logo-container">
      <a href=""><img src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bc_logo.png" alt=""></a>
    </div>
    <div class="span3 text-right">
              <form id="search-form" class="form-search form-horizontal" action="/search.php" method="get">
            <div class="input-append span12">
                <input autocomplete="off" name="sp" class="search-query" placeholder="Search..." type="text">
                <button type="submit"><i class="icon-search"></i></button>
            </div>
        </form>
          </div>
    <div class="span5 main-menu-container text-right">
      <a href=""><i class="icon-user"></i> Your Account</a>
      <a href=""><i class="icon-shopping-cart"></i> Shopping Cart</a>
      <a href=""><i class="icon-ok-circle"></i> Checkout</a>
      <a href=""><i class="icon icon-black icon-contacts"></i> Contact Us</a>
    </div>
  </div>
 </section>
</header>
<div class="clearfix"></div>    
   <section class="container-semifluid" id="main-container"> 
           <div class="row-fluid" style="position:relative;">
        <div class="span12 carousel_wrapper horizontal-category" style="display:none" >                                 
          <span style="display: block;" class="carousel-prev disabled" id="carousel-category-prev"></span>
          <div style="display: block; text-align: start; float: none; position: relative; top: auto; right: auto; bottom: auto; left: auto; z-index: auto; width: 1170px; height: 40px; margin: 0px 0px 20px; overflow: hidden;" class="caroufredsel_wrapper"><ul style="text-align: left; float: none; position: absolute; top: 0px; right: auto; bottom: auto; left: 0px; margin: 0px; width: 4432px; height: 40px;">       
             
              <li>
                <a href="" >Option 1</a>
              </li>
             
              <li>
                <a href="">Option 2</a>
              </li>
             
              <li>
                <a href="" >Option 3</a>
              </li>
             
              <li>
                <a href="" >Option 4</a>
              </li>
             
              <li>
                <a href="" >Option 5</a>
              </li>
             
             <li>
                <a href="" >Option 6</a>
              </li>
             
			 <li>
                <a href="" >Option 7</a>
              </li>
             
              <li>
                <a href="" >Option 8</a>
              </li>
             
             <li>
                <a href="" >Option 9</a>
              </li>
             
               <li>
                <a href="" >Option 10</a>
              </li>
             
             <li>
                <a href="" >Option 11</a>
              </li>
             
			 <li>
                <a href="" >Option 12</a>
              </li>
             
              <li>
                <a href="" >Option 13</a>
              </li>
             
             <li>
                <a href="" >Option 14</a>
              </li>
             
             <li>
                <a href="">Option 15</a>
              </li>
             
           </ul></div>            
          <span style="display: block;" class="carousel-next" id="carousel-category-next"></span>                                   
        </div> 
        <span style="left: 192px; width: 0px;" class="categories_menu_indicator"></span>       
       </div>
        <div class="box-header">
          <span class="header-text"><i class="icon icon-black icon-locked"></i> Login</span>      
      </div>      
             <section class="row-fluid registration-page"><!-- BODY ROW -->      
         <section class="span6 login-container">
          <h3>REGISTERED CUSTOMERS</h3>           <h4>Please either log</h4> 
           <div id="result-login" class="hide"></div>       
           <form method="post" action="" accept-charset="UTF-8" id="login-form" novalidate="novalidate">    		  
                     <div class="control-group">
                       <div class="controls">
                         <div class="input-prepend">
                          <span class="add-on"><i class="icon-user"></i></span>
                          <input type="text" name="useridLog" id="useridLog" class="required" placeholder="UserID" value="" autocomplete="off">   
                         </div> 
                       </div>                       
                     </div>
                     <div class="control-group">
                       <div class="controls">   
                         <div class="input-prepend">                          
                          <span class="add-on"><i class="icon icon-black icon-key"></i></span>
                          <input type="password" name="passwordLog" id="passwordLog" class="required" placeholder="Password" value="">
                        </div>
                      </div>                                           
                    </div>
                    <span class="btn btn-login btn-info unbordered solid squared" id="btn-login"><i class="icon icon-white icon-unlocked"></i> Login</span>&nbsp;&nbsp; <a href="#" class="retrieve-data">Forgotten Data?</a>
                    <div class="clearfix"></div>              
           </form>
       </section>
          <section class="span6 registration-container"> 
           <h3>Q8movies.com :: NEW USER</h3>
          
            <strong class="text-info"><small>Fields marked with (*) are required</small></strong>
			<br/>
           <div id="result-registration" class="alert alert-success"></div>
		   <br/>
          <div style="padding:15px;border:1px solid #fff;border-radius:6px;background:#e5e5e5" class="default-status-registration-form">
           <div class="container_form" style=" width: 496px; position: relative;">
		   <form method="post" action="abc.php" accept-charset="UTF-8" id="registration-form" novalidate="novalidate" style="width: 496px; border: none; padding: 0px; margin: 0px;">
             <div class="container_steps" style="position: relative; width: 1488px; border: none; padding: 0px; margin: 0px;">
			 <div id="fstep_1" style="width: 496px; overflow: auto; border: none; padding: 0px; margin: 0px; float: left;">            
                 
				 <div class="row-fluid">  
                    <div class="control-group span12 warning">
					<label calss="control-label" for="name"><strong>First Name*</strong></label>
						<div class="controls">
							<div class="input-prepend no-add row-fluid">
								<input type="text" class="required span12" name="name" id="name" value="" data-array="12,12,Name*" placeholder="Name*" autocomplete="off" style="width: 100%;">
							</div>
							<label for='name' generated='true' class='error help-inline'></label>
						</div>
					</div>
                  </div>
                  <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="lastname"><strong>Last Name*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required span12" name="lastname" id="lastname" value="" data-array="12,12,Last Name*" placeholder="Last Name*" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div>
                  <div class="row-fluid hidden">
                    <div class="control-group span12 warning"><label calss="control-label" for="tax_code"><strong>Tax Code*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required span12" name="tax_code" id="tax_code" value="" data-array="12,12,Tax Code*" placeholder="Tax Code*" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div>
                  <div class="row-fluid">  
                    <div class="control-group span12 warning"><label calss="control-label" for="email"><strong>E-mail*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required email span12" name="email" id="email" value="" data-array="12,12,E-mail*" placeholder="E-mail*" autocomplete="off" style="width: 100%;"></div></div></div>
                  </div>
                  <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="phone"><strong>Phone*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required span12" name="phone" id="phone" value="" data-array="12,12,Phone*" placeholder="Phone*" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div>
				   <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="password"><strong>Password*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="password" class="required span12" name="password" id="password" value="" data-array="12,12,Password*" placeholder="Password*" style="width: 100%;"></div></div></div> 
                  </div>
                  <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="password2"><strong>Repeat Password*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="password" class="required span12" name="password2" id="password2" equalto="#password" value="" data-array="12,12,Repeat Password*" placeholder="Repeat Password*" style="width: 100%;"></div></div></div> 
                  </div> 
                  <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="fax"><strong>Password Hint</strong></label><div class="controls">
					<div class="input-prepend no-add row-fluid"><input type="text" name="pass-hint" id="pass-hint" value="" data-array="12,12,pass-hint" class="span12" placeholder="Fax" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div>
				<div class="row-fluid">
					<div class="control-group span12 warning">
						<label calss="control-label" for="how"><strong>How did you heard about us?</strong></label>
						<div class="input-prepend no-add row-fluid">
							<textarea name="know-us" id="know-us" cols="40" rows="2"></textarea>
						</div>
					</div>
				</div>
				<div class="row-fluid">
					<div class="control-group span12 warning">
						<label calss="control-label" for="how"><strong>Newsletter ?</strong></label>
						<div class="input-prepend no-add row-fluid">
							<input type="checkbox" name="news">
						</div>
					</div>
				</div>
                  <div class="row-fluid">  
                    <div class="control-group span12 warning"><label calss="control-label" for="address"><strong>Address*</strong></label>
					<div class="controls"><div class="input-prepend no-add row-fluid">
					<input type="text" class="required span12" name="address" id="address" value="" data-array="12,12,Address*" placeholder="Address*" autocomplete="off" style="width: 100%;"></div></div></div>
                  </div>
				    
				   <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="city"><strong>City*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required span12" name="city" id="city" value="" data-array="12,12,City*" placeholder="City*" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div> 
                  <div class="row-fluid">
                    <div class="control-group span12 warning"><label calss="control-label" for="zipcode"><strong>Zip Code*</strong></label><div class="controls"><div class="input-prepend no-add row-fluid"><input type="text" class="required span12" name="zipcode" id="zipcode" value="" data-array="12,12,Zip Code*" placeholder="Zip Code*" autocomplete="off" style="width: 100%;"></div></div></div> 
                  </div>
                 
             </div>
			 </div>
              
              <div id="form-btn" class="text-right"><span type="submit" class="fsubmit btn btn-info squared unbordered solid"><i class="icon-white icon-plus"></i> Sign up</span></div>  
                                       
           </form>
		   </div>          
           
          </div>
           <div class="clearfix"></div>
        </section>
   </section>
   </section> <!-- /CONTAINER -->
	<footer>
  <div class="container-fluid" id="footer">
   <div class="container-semifluid">   
      <div class="row-fluid">
        <div class="span6">        
          <img src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bc_logo_footer.png" alt="" width="30%">
          <p style="text-align:justify">
          "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
 do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim 
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut 
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit 
in voluptate velit esse cillum dolore eu fugiat nulla pariatur. 
Excepteur sint occaecat cupidatat non proident, sunt in
          </p>
         <div class="clearfix"></div>
        </div>
        <div class="span3">
          <div class="box-header">
            <span class="header-text" style="white-space:nowrap;">Your Account</span>   
          </div>         
         <ul class="menu-vertical-indicator">
           <li><a href="">General Info</a></li>
           <li><a href="">Addresses</a></li>
           <li><a href="">Orders</a></li>
           <li><a href="">Contact Us</a></li>
         </ul>
         <div class="clearfix"></div>
        </div>
        <div class="span3">
          <div class="box-header">
            <span class="header-text" style="white-space:nowrap;">Contact Us</span>   
          </div>         
         <ul>
           <li><img src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/footer-phone.png">1234564545</li>
           <li><img src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/footer-email.png"> contact@q8movies.com</li>
           <li><img src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/footer-marker.png"> abc, xyz</li>
         </ul>
         <div class="clearfix"></div>
        </div>       
                     
      </div>
      
   </div>
  </div>    
</footer>
<!-- retrieve user's data form -->						 
<div id="retrieve-data-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="retrieve-data-modallabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><li class="icon-remove"></li></button>
    <span id="retrieve-data-modallabel"><strong class="label label-info">Retrieve Your access data</strong></span>
  </div>  
  <div class="modal-body">
     <div id="retrieve-result" class="hide"></div>
     <form novalidate="novalidate" method="post" action="/retrieve-data.php" accept-charset="UTF-8" id="retrieve-data-form">    		  
         <div class="control-group">
           <div class="controls">
            <label for="userid-retrieve">UserID</label>
             <div class="input-prepend">
              <span class="add-on"><i class="icon-user"></i></span>              
              <input autocomplete="off" name="userid_retrieve" id="userid-retrieve" class="leastoneinput" placeholder="UserID" type="text">   
             </div> 
           </div>                       
         </div>
         <div class="control-group">
           <div class="controls">  
             <label for="email-retrieve">E-mail</label> 
             <div class="input-prepend">                          
              <span class="add-on"><i class="icon-envelope"></i></span>              
              <input autocomplete="off" name="email_retrieve" id="email-retrieve" class="leastoneinput email" placeholder="E-mail" type="text">
            </div>
          </div>                                           
        </div>   
        <span class="btn btn-info unbordered solid squared pull-right" id="btn-retrieve-data"><i class="icon-white icon-wrench"></i> Retrieve data</span>
        <div class="clearfix"></div>              
       </form>  
  </div>
</div> 
<!-- / retrieve user's data form -->							
<a style="display: none;" id="go-to-top"></a>
</div>

<!-- CLOSE CONTAINER FOR NICESCROLL PLUGIN (FIX CHROME SCROLLING PROBLEM), div opened into body-header.php file -->
    <!-- ========================== Javascript ======================== -->  
	 <script src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_003.js"></script>
<script src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap.js"></script>
<script src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/bootstrap_extensions.js"></script>    
<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jsin.js"></script>
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/en_US.js"></script>    
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/validate.js"></script> 
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/ajaxForm.js"></script> 
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/livequery.js"></script> 
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/center-div.js"></script>  
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/loader.js"></script>  
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_010.js"></script> 
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_002.js"></script>
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery.js"></script>
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/restyle-checkbox.js"></script>
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/restyle-radio.js"></script>  
  <!-- carousel plugin --> 
	<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_007.js"></script>  
	<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_004.js"></script>
	<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_009.js"></script>
	<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_011.js"></script>
	<script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_005.js"></script>          
  <!-- /carousel plugin --> 
	<script type="text/javascript">
    $(function(){
	  /*$("html").niceScroll({cursorcolor:'#3A87AD',cursorborder:'1px solid #fff'});*/
	  $('body').data('theme_path','/content/themes/default');
	  $('body').data('theme_img_path','/content/themes/default/img');
	  $('body').data('abs_client_path','');
	  $('body').data('thousands_separator',',');
	  $('body').data('decimals_separator','.');	  
	  	  	
	      $("html").niceScroll({cursorcolor:'#3A87AD',cursorborder:'0px solid #fff',cursorwidth:8});
		  $('.responsiveHead').on('click', function(e) {
			  e.preventDefault();			  
			  if(!$(this).next('.responsiveMenu').is(':visible')){
				  $(this).next('.responsiveMenu').slideDown('fast');
			  }else{				  
				  $(this).next('.responsiveMenu').slideUp('fast');
			  }
		  });	
	      
    });
    </script>    
    <!--[if lt IE 9]>
        <script type="text/javascript" src="/content/themes/default/js/ie_hacks.js"></script>        
    <![endif]-->
    <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/main_script.js"></script>   
         
   <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_006.js"></script> 
   <script type="text/javascript" src="http://grabwebs.com/commerce/BootCommerce%20Demo_files/jquery_008.js"></script> 

 <script>
	$(document).ready(function(){
		
		$(".fsubmit").click(function(){
			var name = $("#name").val();
			var lname = $("#lastname").val();
			var email = $("#email").val();
			var phone = $("#phone").val();
			var password = $("#password").val();
			if(name == ""){
				$(".error").html("Required Field");
				return false;
			}
			var dataString = 'name='+ name + '&lname=' + lname + '&email=' + email + '&phone=' + phone + '&pass=' + password;
			$.ajax({
			  type: "POST",
			  url: "ajax_registration_process.php",
			  data: dataString,
			 
			  success: function(data) {
				if(data == "exists"){
					$("#result-registration").html("this email already exists.");
					alert("this email already exists.");
					return false;
				}
				if(data == "success"){
					$("#result-registration").html("Congrats ! thank you for registering.");
					alert("Congrats ! thank you for registering.");
				}
			  }
			 });
		});
		
		$(".btn-login").click(function(){
			var userid = $("#useridLog").val();
			var password = $("#passwordLog").val();	
			var dataString = 'userid='+ userid + '&password=' + password;
			$.ajax({
			  type: "POST",
			  url: "chec.php",
			  data: dataString,
			  success: function(data) {
			 
				if(data == "failure"){
					alert("user name or password not valid.");
					return false;
				}
				if(data == "success"){
					alert("successfuly logged in.");
					location.reload();
				}
				if(data == "already logged in"){
					location.reload();
				}
			  }
			 });
		});
	});
  </script>
<div style="width: 8px; z-index: auto; cursor: default; position: fixed; top: 0px; height: 100%; right: 0px; opacity: 0;" class="nicescroll-rails" id="ascrail2000"><div style="position: relative; top: 0px; float: right; width: 8px; height: 207px; background-color: rgb(58, 135, 173); border: 0px solid rgb(255, 255, 255); background-clip: padding-box; border-radius: 0px;"></div></div><div style="height: 8px; z-index: auto; position: fixed; left: 0px; width: 100%; bottom: 0px; cursor: default; opacity: 0; display: none;" class="nicescroll-rails" id="ascrail2000-hr"><div style="position: relative; top: 0px; height: 8px; width: 1366px; background-color: rgb(58, 135, 173); border: 0px solid rgb(255, 255, 255); background-clip: padding-box; border-radius: 0px; left: 0px;"></div></div></body>
<?php
}

?>
</html>